package com.zut.service;

import com.zut.domain.Admin;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface AdminService {


    /**
     * 按id查询
     *
     * @param admin
     * @return
     */
    Admin getByNP(Admin admin);

    /**
     * 修改信息
     *
     * @param admin
     * @return
     */
    boolean update(Admin admin);

    /**
     * 获取管理员密码
     * @param id
     * @return
     */
    String getPassword(String id);
}
